package com.wkbb.sports.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.wkbb.sports.utils.DoubleJacksonSerializer;
import lombok.Data;

import java.io.Serializable;

/**
 * @author 大数据中心 统计
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class DetectStatisticsDto implements Serializable {

    private double standardRate;
    private double flunkRate;
    private Double overloadRate;
    private double abRate;
    private int focusCount;

    public void format() {
        if (overloadRate == null) overloadRate = 0.0;
    }
}